projects
/
opencc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0265e11
)
Use system googletest
author
Shengjing Zhu
<zhsj@debian.org>
Sun, 28 Jul 2024 23:44:27 +0000
(19:44 -0400)
committer
Boyuan Yang
<byang@debian.org>
Sun, 28 Sep 2025 23:36:20 +0000
(19:36 -0400)
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0004-Use-system-googletest.patch
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 2f2776cabe44de5416c7fcd8dd8d4ba5419ac739..25abb7dadc8b84d63c0c96401d3fbb430c3a05e4 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-231,6
+231,8
@@
add_subdirectory(test)
if (ENABLE_GTEST)
if(NOT USE_SYSTEM_GTEST)
add_subdirectory(deps/googletest-1.15.0)
+ else()
+ add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
endif()
enable_testing()
endif()